﻿using System;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

public class ScannedItemScript : MonoBehaviour,IPointerDownHandler
{
	public Text TextNameValue;
	public Text TextAddressValue;
	public Text TextRSSIValue;

    public delegate void EventHandler(string address);
    public event EventHandler clickItem;

    public void OnPointerDown(PointerEventData eventData)
    {
        clickItem(TextAddressValue.text.ToString());
    }
}
